c2073c343df39afbe10db22492aaefa23787e4a8,src/main/java/org/elasticsearch/gateway/local/LocalGatewayAllocator.java,LocalGatewayAllocator,allocateUnassigned,#RoutingAllocation#,106

Before Change


                }
                // if we can't allocate it on a node, ignore it, for example, this handles
                // cases for only allocating a replica after a primary
                if (allocation.deciders().canAllocate(shard, node, allocation).allocate()) {
                    canBeAllocatedToAtLeastOneNode = true;
                    break;
                }

After Change


                }
                // if we can't allocate it on a node, ignore it, for example, this handles
                // cases for only allocating a replica after a primary
                Decision decision = allocation.deciders().canAllocate(shard, node, allocation);
                if (decision.type() == Decision.Type.YES) {
                    canBeAllocatedToAtLeastOneNode = true;
                    break;
                }